package com.jprocms.module.cms.controller.admin.content.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Set;

import static com.jpro.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "内容统计查询 Request VO")
@Data
@ToString(callSuper = true)
public class ContentStatQueryReqVO {


    @Schema(description = "查询结果开始下标")
    private Integer offset = 0;

    @Schema(description = "取多少条")
    private Integer count = 0;


    @Schema(description = "站点ID")
    private Long siteId;

    @Schema(description = "内容状态(1:已发布;   2:流转中;   3:待发布;  4:退回;  5:下线  6:草稿;   7 删除 ")
    private Integer status;


    @Schema(description = "创建方式（1:直接创建    2:投稿  3:手动引用  4:主动采集   5:复制  ")
    private Short createMode;

    @Schema(description = "部门id,后端构建")
    private Set<Long> deptIds;

    @Schema(description = "创建人ID")
    private Long userId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private java.util.Date[] createTime;
    //service组装给xml使用，前端用 createTime 传递
    private java.util.Date createTimeBegin;
    private java.util.Date createTimeEnd;

    @Schema(description = "是否预览内容")
    private Integer livePreview;


}
